from langchain_community.document_loaders import PyPDFLoader
from dotenv import load_dotenv
load_dotenv()

loader = PyPDFLoader("llama2.pdf")
pages = loader.load_and_split()

print(f"第0页:\n{pages[0]}")